/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdDatabaseTypeManagement;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 要素库类型管理业务对象 isfd_database_type_management
 *
 * @author hxloongs
 * @date 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdDatabaseTypeManagement.class, reverseConvertGenerate = false)
public class IsfdDatabaseTypeManagementBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 父级别id
     */
    @NotNull(message = "父级别id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long parentId;

    /**
     * 顶层id
     */
    private Long topId;

    /**
     * 要素数据库名称，材料库、算法库、参数库等等
     */
    @NotBlank(message = "要素数据库名称，材料库、算法库、参数库等等不能为空", groups = {AddGroup.class, EditGroup.class})
    private String databaseName;

    /**
     * 层级
     */
    @NotNull(message = "层级不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long level;

    /**
     * 描述
     */
    private String description;


}
